//验证邮箱
export const emailReg = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
//验证手机号
export const phoneReg = /^1[3456789]\d{9}$/;
//验证正整数(不包含0)
export const numParseReg = /^[1-9]\d*$/;
//验证正整数(包含0)
export const numparZReg = /^(0|\+?[1-9][0-9]*)$/;
//验证最多7位正整数(包含0)
export const numparZ7Reg = /^(0|\+?[1-9][0-9]*){1,7}$/;
//验证正数
export const numZsReg = /^(0|[1-9][0-9]*)(\.\d+)?$/;
//验证身份证号
export const sfzReg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
//验证两位小数正数
export const numFloor = /^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/
//验证小于1的最多两位小数
export const lessOneReg = /^(0(\.\d{1,2}))?$/
//验证小于1的最多四位小数
export const lessOneReg4 = /^(0(\.\d{1,4}))?$/
//验证密码
// export const passwrodReg=/^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{6,20}$/
// export const passwrodReg=/^(?![A-Za-z]+$)(?![A-Z\\d]+$)(?![A-Z\\W]+$)(?![a-z\\d]+$)(?![a-z\\W]+$)(?![\\d\\W]+$)\\S{6,20}$/
export const passwrodReg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}$/
//验证薪资
export const salarys = /^[1-9]\d{3}\.\d$|^[1-9]\d{2}\.\d{2}$|^[1-9]\d{4}$/
//验证字母数字和短连接线-
export const codeReg = /^[0-9a-zA-Z-]+$/

//验证字母数字
export const codesReg = /^[0-9a-zA-Z]+$/
// 验证两位字母字母
export const twocodesReg = /^[0-9a-zA-Z]{2}$/
//验证两位大写字母
export const twoLetterReg = /^[A-Z0-9]{2}$/

//100以内的整数或最多两位小数验证
export const hundredReg = /^([0-9]|[1-9][0-9]|100)(\.\d{1,2})?$/; 

 